﻿using System;
using ASPNETVN.PORTAL.Components.UI;
using ASPNETVN.PORTAL.Modules.DOCUMENT.Components;

namespace ASPNETVN.PORTAL.Modules.DOCUMENT.Controls
{
    public partial class PublisherManager : AddEditItemControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Publisher publisher = new Publisher();
            string title = txtTitle.Text.Trim();
            string description = txtDescription.Text.Trim();
            publisher.Title = title;
            publisher.Description = description;
            publisher.ModuleID = this.ModuleID;
            publisher.Insert();
            gvPublisher.DataBind();
            txtTitle.Text = txtDescription.Text = string.Empty;
        }
    }
}